package com.callback;

public class Me {

    public void callFriend(Friend friend) throws InterruptedException{
        System.out.println("1.打电话给朋友，让他约时间");
        friend.order(this);
        doOtherThing();
    }

    public void noticeMe(){
        System.out.println("6.收到朋友的通知");
    }

    public void doOtherThing(){
        System.out.println("3.我去做其他的事情");
    }

}
